package com.yike.user.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yike.common.api.Update;
import com.yike.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 *
 * @author yike
 * @since 2024-07-17
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "修改用户参数")
public class UpdateUserParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    private Long id;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("头像")
    private String image;

    @ApiModelProperty("性别 0:女 1:男")
    private String sex;

    @ApiModelProperty("最后登录时间")
    private Date loginTime;

    @ApiModelProperty("盐")
    private String salt;

    @ApiModelProperty("帐号启用状态：0:禁用 1:启用")
    private Integer status;

}
